package com.milo.xml;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class CityBean {

    /**
     * 城市编码
     */
    //属性是必须用注解声明的
    @XStreamAsAttribute()
    @XStreamAlias("url")
    private String cityCode;

    /**
     * 城市名称
     */
    @XStreamAsAttribute()
    @XStreamAlias("cityname")
    private String cityName;


    /**
     * 天气状况
     */
    @XStreamAsAttribute()
    @XStreamAlias("stateDetailed")
    private String  stateDetailed;


    /**
     * 当前气温
     */
    @XStreamAsAttribute()
    @XStreamAlias("temNow")
    private Long temNow;

    /**
     * 风向状态
     */
    @XStreamAsAttribute()
    @XStreamAlias("windState")
    private String windState;


    /**
     * 风向描述
     */
    @XStreamAsAttribute()
    @XStreamAlias("windDir")
    private String windDir;

    /**
     * 风力等级
     */
    @XStreamAsAttribute()
    @XStreamAlias("windPower")
    private String windPower;

    /**
     * 湿度
     */
    @XStreamAsAttribute()
    @XStreamAlias("humidity")
    private String humidity;

    /**
     * 时间
     */
    @XStreamAsAttribute()
    @XStreamAlias("time")
    private String time;



  }